package com.leenleda.ips.net;

import com.google.gson.reflect.TypeToken;
import com.leenleda.ips.util.GsonUtils;
import com.leenleda.ips.util.UShared;

import java.util.ArrayList;
import java.util.List;

public class TestLog {

    public static void saveLog(String data){

//        String logEntity = UShared.getString("LogEntity");
//        List<LogEntity> hisList = new ArrayList<>();
//        if (!logEntity.isEmpty()){
//            hisList = GsonUtils.getInstance().fromJson(logEntity, new TypeToken<List<LogEntity>>(){}.getType());
//        }
//        hisList.add(new LogEntity(logEntity));
//        String result = GsonUtils.getInstance().toJson(hisList);
//        UShared.putString("LogEntity", result);
    }
}
